#ifndef MODBUSWIG_H
#define MODBUSWIG_H

#include <QWidget>
#include<QDebug>
#include <QCoreApplication>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QJsonValue>
#include <QDebug>
#include <QStringList>
#include "globalval.h"
namespace Ui {
class ModbusWig;
}

class ModbusWig : public QWidget
{
    Q_OBJECT

public:
    explicit ModbusWig(QWidget *parent = 0);
    ~ModbusWig();

private:
    Ui::ModbusWig *ui;
    int light=0;
    int flag1_light=0;
     int flag2_siren=0;

public slots:
   void dataUpSlot(QByteArray);
   void dataDownSlot();
   void lightdataDownSlot();//灯光和报警
};

#endif // MODBUSWIG_H
